class Hero:  # 英雄类
    def __init__(self, nickname: str, health: int, mana: int, attack: int, armor: int):
        self.nickname = nickname
        self.health = health
        self.mana = mana
        self.attack = attack
        self.armor = armor

    # Q 技能
    def QSkill(self, skill_name: str, hit_sound_effect: str, enemy=None):
        if enemy is None:
            print(f'{self.nickname}:{skill_name}-空Q了,你的{self.nickname}真的菜')
        else:
            enemy.health -= self.attack - enemy.armor
            print(f'{self.nickname}:{skill_name}-{hit_sound_effect}')


yasuo = Hero('Yasuo', 590, 0, 60, 30)
yasuo.QSkill('斩钢闪', 'Hasagi')
yasuo = Hero('Galen', 690, 0, 66, 36)
yasuo.QSkill('致命打击', '德玛西亚万岁！', yasuo)
